#ifndef NJU_FORMAT
#define NJU_FORMAT
#include "major_prob.h"

//This is ugly code special for the nju project requirement.

bool sort_by_prob_less (const major_prob & p1, const major_prob & p2)
{
    if (p1._prob > p2._prob)
        return true;
    else
        return false;
}

bool sort_by_prob_greater (const major_prob & p1, const major_prob & p2)
{
    if (p1._prob < p2._prob)
        return true;
    else
        return false;
}

bool is_3G(major_prob& mp)
{
	if(mp._label == "3G")
		return true;
	else    
		return false;
}

bool is_2G(major_prob& mp)
{
	if(mp._label == "2G")
		return true;
	else    
		return false;
}

#endif
